// Components
import Taro from "@tarojs/taro";

import useToast from "./useToast";

function useClipboard(data = "") {
  Taro.setClipboardData({
    data,
    success: () => {
      useToast("复制成功");
    },
  });
}

export default useClipboard;
